/**
 * 
 */
package com.sevenpay.wx.jybcj.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.sevenpay.wx.jybcj.bean.YbDetailInfo;
import com.sevenpay.wx.jybcj.bean.YbInfo;
import com.sevenpay.wx.jybcj.dao.YbCjInfoMapper;
import com.sevenpay.wx.jybcj.dao.YbDetailInfoMapper;
import com.sevenpay.wx.jybcj.dao.YbInfoMapper;
import com.sevenpay.wx.jybcj.dao.YbUserInfoMapper;

/**
 * @author kunwang.li
 *
 */
@Repository
public class JybcjServiceSupport {

	@Autowired
	private YbCjInfoMapper ybCjInfoMapper;
	@Autowired
	private YbDetailInfoMapper ybDetailInfoMapper;
	@Autowired
	private YbInfoMapper ybInfoMapper;
	@Autowired
	private YbUserInfoMapper ybUserInfoMapper;

	@Transactional
	public void selectYb(YbInfo ybInfo, List<YbDetailInfo> list) {
		ybInfoMapper.updateByPrimaryKeySelective(ybInfo);
		ybDetailInfoMapper.batchInsertSelective(list);
	}

	public YbCjInfoMapper getYbCjInfoMapper() {
		return ybCjInfoMapper;
	}

	public void setYbCjInfoMapper(YbCjInfoMapper ybCjInfoMapper) {
		this.ybCjInfoMapper = ybCjInfoMapper;
	}

	public YbDetailInfoMapper getYbDetailInfoMapper() {
		return ybDetailInfoMapper;
	}

	public void setYbDetailInfoMapper(YbDetailInfoMapper ybDetailInfoMapper) {
		this.ybDetailInfoMapper = ybDetailInfoMapper;
	}

	public YbInfoMapper getYbInfoMapper() {
		return ybInfoMapper;
	}

	public void setYbInfoMapper(YbInfoMapper ybInfoMapper) {
		this.ybInfoMapper = ybInfoMapper;
	}

	public YbUserInfoMapper getYbUserInfoMapper() {
		return ybUserInfoMapper;
	}

	public void setYbUserInfoMapper(YbUserInfoMapper ybUserInfoMapper) {
		this.ybUserInfoMapper = ybUserInfoMapper;
	}

}
